//
//  GameOrderModel.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/9/6.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class GameOrderModel: NSObject {
    var store_name : String?
    var goods_price : String?
    var goods_num : String?
    var goods_name : String?
    var goods_image_url = "-999"
    var state_desc : String?
    var pay_sn : String?
    
    init(dic : [String : AnyObject]) {
        super.init()
        
        setValuesForKeys(dic)
        
    }
    
    
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
        
    }
    
    
    //在swift中想要打印对象要以下重写属性
    override var description: String{
        let keys = ["store_name","goods_price","goods_num","goods_name","goods_image_url","state_desc","pay_sn"]
        let dic = dictionaryWithValues(forKeys: keys)
        return "\(dic)"
    }


}
